package com.example.demo.abstract_demo;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 21:42 2020/11/11
 * @Modified By:
 */
public class Manager extends Employee {
    /** 奖金 */
    private double bonus;

    @Override
    public void work() {
        System.out.println("管理者管理员工");
    }

    public Manager(String name, int id, double salary, double bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    public Manager(double bonus) {
        this.bonus = bonus;
    }

    public Manager() {
    }
}
